﻿package com.badibadi.infos;

import java.io.Serializable;
import java.util.Hashtable;
import java.util.Map;

public class MyDataInfos implements Serializable {

	private static final long serialVersionUID = -3731078042048999892L;
	Map<Integer, Object> map;
	/**头像 */
	private int headPortrait;
	/**名称*/
	private String name;
	/** 兴趣爱好*/
	private String hobby;
	/**参考咨询费*/
	private int consultingfee;
	/**专长*/
	private String expertise;
	/** 达人类型*/
	private String expertType;
	/**座右铭*/
	private String motto;
	/**来自*/
	private String from;
	/** 邮箱*/
	private String e_mail;
	/**性别*/
	private String sex;
	/**支付宝账号*/
	private String alipay;
	/**金币余额*/
	private double money;
	/**出生日期*/
	private String birthday;
	/**手机号码*/
	private int phoneNumber;
	/**背景图*/
	private int backgroundImage;
	/**最想参加的俱乐部*/
	private String likeClub;
	/**最讨厌的俱乐部*/
	private String dislikeClub;
	/**二维码图片*/
	private int QRcode;
	/**学历背景*/
	private String education;

	public MyDataInfos() {

	}

	public MyDataInfos(Map<Integer, Object> map, int headPortrait, String name,
			String hobby, int consultingfee, String expertise,
			String expertType, String motto, String from, String e_mail,
			String sex, String alipay, double money, String birthday,
			int phoneNumber, int backgroundImage, String likeClub,
			String dislikeClub, int qRcode, String education) {
		super();
		this.map = map;
		this.headPortrait = headPortrait;
		this.name = name;
		this.hobby = hobby;
		this.consultingfee = consultingfee;
		this.expertise = expertise;
		this.expertType = expertType;
		this.motto = motto;
		this.from = from;
		this.e_mail = e_mail;
		this.sex = sex;
		this.alipay = alipay;
		this.money = money;
		this.birthday = birthday;
		this.phoneNumber = phoneNumber;
		this.backgroundImage = backgroundImage;
		this.likeClub = likeClub;
		this.dislikeClub = dislikeClub;
		QRcode = qRcode;
		this.education = education;
	}

	/**
	 * 必须要setMap后才能getmap
	 * 
	 * @return
	 */
	public Map<Integer, Object> getMap() {
		return map;
	}

	public void setMap() {
		map = new Hashtable<Integer, Object>();
		// map.putAll(arg0);
		map.put(0, headPortrait);
		map.put(1, name);
		map.put(2, headPortrait);
		map.put(3, consultingfee);
		map.put(4, expertise);
		map.put(5, expertType);
		map.put(6, motto);
		map.put(7, from);
		map.put(8, e_mail);
		map.put(9, sex);
		map.put(10, alipay);
		map.put(11, money);
		map.put(12, birthday);
		map.put(13, phoneNumber);
		map.put(14, backgroundImage);
		map.put(15, likeClub);
		map.put(16, dislikeClub);
		map.put(17, QRcode);
		map.put(18, education);

	}

	@Override
	public String toString() {
		return "MyDataInfos [headPortrait=" + headPortrait + ", name=" + name
				+ ", hobby=" + hobby + ", consultingfee=" + consultingfee
				+ ", expertType=" + expertType + ", motto=" + motto + ", from="
				+ from + ", e_mail=" + e_mail + ", sex=" + sex + ", alipay="
				+ alipay + ", money=" + money + ", birthday=" + birthday
				+ ", phoneNumber=" + phoneNumber + ", backgroundImage="
				+ backgroundImage + ", likeClub=" + likeClub + ", dislikeClub="
				+ dislikeClub + ", QRcode=" + QRcode + ", education="
				+ education + "]";
	}

	public int getHeadPortrait() {
		return headPortrait;
	}

	public void setIcon(int headPortrait) {
		this.headPortrait = headPortrait;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	public int getConsultingfee() {
		return consultingfee;
	}

	public void setConsultingfee(int consultingfee) {
		this.consultingfee = consultingfee;
	}

	public String getExpertType() {
		return expertType;
	}

	public void setExpertType(String expertType) {
		this.expertType = expertType;
	}

	public String getMotto() {
		return motto;
	}

	public void setMotto(String motto) {
		this.motto = motto;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getE_mail() {
		return e_mail;
	}

	public void setE_mail(String e_mail) {
		this.e_mail = e_mail;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAlipay() {
		return alipay;
	}

	public void setAlipay(String alipay) {
		this.alipay = alipay;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public int getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(int phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public int getBackgroundImage() {
		return backgroundImage;
	}

	public void setBackgroundImage(int backgroundImage) {
		this.backgroundImage = backgroundImage;
	}

	public String getLikeClub() {
		return likeClub;
	}

	public void setLikeClub(String likeClub) {
		this.likeClub = likeClub;
	}

	public String getDislikeClub() {
		return dislikeClub;
	}

	public void setDislikeClub(String dislikeClub) {
		this.dislikeClub = dislikeClub;
	}

	public int getQRcode() {
		return QRcode;
	}

	public void setQRcode(int qRcode) {
		QRcode = qRcode;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

}
